using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace UniversalAdmin.Domain.Entities;

[Table("user_roles")]
public class UserRole
{
  [Key]
  [Column("user_id")]
  public int UserId { get; set; }

  [ForeignKey("UserId")]
  public virtual User? User { get; set; }

  [Key]
  [Column("role_id")]
  public int RoleId { get; set; }

  [ForeignKey("RoleId")]
  public virtual Role? Role { get; set; }
}